package com.digoyo.hr.model;

/**
 * @Author: Daniel
 * @Description:
 * @Date: Created in 6:20 PM 2020/3/9
 * @Modified By:
 */
public class RespBean {
    private Integer staus;
    private String msg;
    private Object obj;

    public static RespBean ok(String msg){
        return new RespBean(200,msg,null);
    }

    public static RespBean ok(String msg,Object obj){
        return new RespBean(200,msg,obj);
    }

    public static RespBean error(String msg){
        return new RespBean(500,msg,null);
    }

    public static RespBean error(String msg,Object obj){
        return new RespBean(500,msg,obj);
    }

    private  RespBean() {
    }

    private  RespBean(Integer staus, String msg, Object obj) {
        this.staus = staus;
        this.msg = msg;
        this.obj = obj;
    }

    public Integer getStaus() {
        return staus;
    }

    public void setStaus(Integer staus) {
        this.staus = staus;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public Object getObj() {
        return obj;
    }

    public void setObj(Object obj) {
        this.obj = obj;
    }
}
